<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    {% load staticfiles %}
    <link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'adminlte/css/AdminLTE.min.css' %}">
    <link rel="stylesheet" href="{% static 'adminlte/css/skins/_all-skins.min.css' %}">
    <link rel="stylesheet" href="{% static 'font-awesome/css/font-awesome.min.css' %}">
    {% block link %}{% endblock %}
    <script src="{% static 'jquery/jquery-3.2.1.min.js' %}"></script>
</head>
<body>
<div class="col-lg-3 col-xs-6">
    {% if result == 'success' %}
        <div class="small-box bg-green">
            <h3>创建成功</h3>
            <a href="javascript:window.close()" class="small-box-footer">关闭页面<i
                    class="fa fa-arrow-circle-right"></i></a>
        </div>
    {% else %}
        <div class="small-box bg-red">
            <h3>创建失败</h3>
            <span>失败原因：{{ msg }}</span>
            <a href="javascript:window.close()" class="small-box-footer">关闭页面<i
                    class="fa fa-arrow-circle-right"></i></a>
        </div>
    {% endif %}
</div>

<script src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
<script src="{% static 'adminlte/js/adminlte.min.js' %}"></script>
{% block script %}
    <script>
        {% if result == 'success' %}
            window.close();
        {% endif %}
    </script>

{% endblock %}
</body>
</html>
